<?php
/*
 * ebiz front
 *
 * Promotion Action Dao
 *
 * @author fusq
 *
 */

require_once '../app/core/models/BaseDao.php';
require_once '../app/core/db/DBUtil.class.php';

class PromotionActionDao extends BaseDao {

    private $tableName = "promotion_actions";

    public function __construct($dbUtil){
    	parent::__construct($dbUtil);
    }

    public function getActionBypromotionid($promotionId){
        $param = array($promotionId);
        $sql = "select * from $this->tableName where promotion_id = ? and is_delete = 0";
        return $this->dbUtil->SelectData($sql,$param);
    }
}